import Vue from 'vue'
import ECharts from 'vue-echarts'
import { use } from 'echarts/core'

import {
    CanvasRenderer
  } from 'echarts/renderers'
  import {
    LineChart
  } from 'echarts/charts'
  import {
    TitleComponent,
    LegendComponent,
    GridComponent,
    TooltipComponent
  } from 'echarts/components'
  
  use([
    LineChart,
    TitleComponent,
    LegendComponent,
    CanvasRenderer,
    GridComponent,
    TooltipComponent
  ]);
  
  // register globally (or you can do it locally)
  Vue.component('v-chart', ECharts)